package com.tjbklx1.thread.chap04.demo02;

import java.util.concurrent.TimeoutException;

public class Main {
	public static void main(String[] args) {
		Host host =new Host(10000);
		
		System.out.println("Begin");
		try {
			host.execute();
			host.setExecutable(true);
		} catch (TimeoutException | InterruptedException e) {
			e.printStackTrace();
		}
	}
}
